home *** CD-ROM | disk | FTP | other *** search
/ PC World 2005 January / PCWorld_2005-01_cd.bin / software / topware / winamp / winamp507_full.exe / $R0 / Winamp Modern / crossfade.maki (.txt) < prev    next >
Winamp Compiled Maki Script  |  2004-07-01  |  2KB  |  61 lines

  1. /* Note: a decompiler is no invitation to steal code.
  2.    Please respect the the copyright */
  3.  
  4. #include "std.mi"
  5. Global Group Group16;
  6. Global Slider Slider17;
  7. Global Text Text18;
  8. Global Button Button19;
  9. Global Button Button20;
  10. Global ToggleButton ToggleButton21;
  11. Global Layer Layer22;
  12.  
  13.  
  14. System.onScriptLoaded()
  15. {
  16. Group16 = System.getScriptGroup();
  17. Slider17 = Group16.findObject(( "sCrossfade"));
  18. Text18 = Group16.findObject(( "CFDisplay"));
  19. Button19 = Group16.findObject(( "CrossfadeIncrease"));
  20. Button20 = Group16.findObject(( "CrossfadeDecrease"));
  21. ToggleButton21 = Group16.findObject(( "Crossfade"));
  22. Layer22 = Group16.findObject(( "crossfade\.display\.overlay"));
  23. Slider17.onSetPosition(Slider17.getPosition());
  24. if(ToggleButton21.getActivated()) {
  25. Layer22.hide();
  26. }
  27. return Null;
  28. }
  29.  
  30. Slider17.onSetPosition(int newpos)
  31. {
  32. String String30;
  33. String30 = System.integerToString(newpos);
  34. Text18.setText(String30);
  35. return Null;
  36. }
  37.  
  38. Button19.onLeftClick()
  39. {
  40. Slider17.setPosition(( Slider17.getPosition() + 1));
  41. return Null;
  42. }
  43.  
  44. Button20.onLeftClick()
  45. {
  46. Slider17.setPosition(( Slider17.getPosition() - 1));
  47. return Null;
  48. }
  49.  
  50. ToggleButton21.onToggle(Boolean onoff)
  51. {
  52. if(onoff) {
  53. Layer22.hide();
  54. } else {
  55. Layer22.show();
  56. }
  57. return Null;
  58. }
  59.  
  60.  
  61.